<?php
/**
 * Description of logout
 *
 * @author Lugol Metayer
 */
class  Logout extends Controller {

		 function index()
		 {
				 $array_items = array('username' => '', 'permission' => '');
				$this->session->unset_userdata($array_items);
				$session_user = $this->session->userdata('username');
								 $session_permission = $this->session->userdata('permission');
								$data['user'] = $session_user;
								$data['permission'] = $session_permission;
				  $data['title'] = "L & R Veterinarian Clinic";
                                   
                                   $this->load->view('login/index', $data);
                                  
		 }

 }
?>
